/*
 * Copyright 2008 Carnegie Mellon University
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.cmu.lti.sepia.infra.topic.model;

public class Answer {

	private int answerId;
	private int topicId;
	private String documentId;
	private int begin;
	private int end;
  private String modifiedAnswerBearingText;
  private String originalAnswerBearingText;
  private String label;
	
	public Answer( int answerId, int topicId, String documentId, 
	        int begin, int end, String modifiedAnswerBearingText, 
	        String originalAnswerBearingText, String label) {
		this.answerId = answerId;
		this.topicId = topicId;
		this.documentId = documentId;
		this.begin = begin;
		this.end = end;
		this.modifiedAnswerBearingText = modifiedAnswerBearingText;
		this.originalAnswerBearingText = originalAnswerBearingText;
		this.label = label;
	}
	
	/**
	 * @return the answerId
	 */
	public int getAnswerId() {
		return answerId;
	}
	/**
	 * @return the answerBearingText
	 */
	public String getAnswerBearingText() {
		return modifiedAnswerBearingText;
	}
	/**
	 * @return the originalAnswerBearingText
	 */
	public String getOriginalAnswerBearingText() {
	  return originalAnswerBearingText;
	}
	/**
	 * @return the documentId
	 */
	public String getDocumentId() {
		return documentId;
	}
	/**
	 * @return the topicId
	 */
	public int getTopicId() {
		return topicId;
	}
  /**
   * @return the begin
   */
  public int getBegin() {
    return begin;
  }
  /**
   * @return the end
   */
  public int getEnd() {
    return end;
  }
  public String getLabel() {
    return label;
  }

  /**
   * @param topicId the topicId to set
   */
  public void setTopicId(int topicId) {
    this.topicId = topicId;
  }

  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    return "Answer [answerId=" + answerId + ", topicId=" + topicId + ", documentId=" + documentId
            + ", begin=" + begin + ", end=" + end + ", answerBearingText=" + modifiedAnswerBearingText
            + ", originalAnswerBearingText=" +originalAnswerBearingText+ ", label="+label+" ]";
  }
	
}
